/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: XMQ
 * Date: 2022-06-15
 * Time: 15:46
 */
class Soup1{
    private Soup1(){};
    public static Soup1 makeSoup1(){
        return new Soup1();
    }
    public void f(){};
}
class Soup2{
    private Soup2(){};
    private static Soup2 ps1 = new Soup2();
    public static Soup2 access(){
        return ps1;
    }
    public void f(){};
}
public class TestDemo {
    void test1(){
        Soup1 soup1 = Soup1.makeSoup1();
        soup1.f();
    }
    void test(){
        Soup2.access().f();
    }
}
